Tag Link | [Net->SetEncoding] | Category | Networking |
---|---|---|---|
Type | Member | Source Available | Yes |
Support | Preferred | Version | 8.5 |
Change | New | Data Source | Any |
Output Type | None | Security | None |
Implementation | Sets | Lasso 8.5 |
[Net->SetEncoding] sets the character set which will be used to automatically encode data that is read from the network using [Net->ReadString] or written to the network using [Net->Write].
[Var: 'myConnection' = (Net: 'www.example.com', 80)]
[$myConnection->(SetEncoding: 'iso-8859-1')]
[$myConnection->(Write: 'GET / HTTP/1.0\r\n')]
[$myConnection->(Write: '\r\n')]
[$myConnection->(ReadString: 32768)]
Required Parameters | |
---|---|
Character set | The character set which should be used to automatically translate strings passed to [Net->Write] and read from [Net->ReadString]. |
See the Lasso 8 Language Guide for examples of how to use this tag.